package com.alibaba.nacos.config.server.jpa.repository;

import com.alibaba.nacos.config.server.jpa.entity.ConfigInfoBetaEntity;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;

/**
 * @author
 * @date 2020-03-08 23:31
 */
@Repository
public interface ConfigInfoBetaRepository extends BaseRepository<ConfigInfoBetaEntity, Long> {

    ConfigInfoBetaEntity findByDataIdAndGroupIdAndTenantId(String dataId, String groupId, String tenantId);

    @Modifying
    void deleteByDataIdAndGroupIdAndTenantId(String dataId, String groupId, String tenantId);

}
